import request from '@/utils/request'

export function getQuartzList(listQuery) {
  return request({
    url: '/sys/quartzJob/list',
    method: 'get',
    params: listQuery
  })
}
export function stopQuartz(jobClassName) {
  return request({
    url: '/sys/quartzJob/pause',
    method: 'get',
    params: {
      jobClassName
    }
  })
}
export function startQuartz(jobClassName) {
  return request({
    url: '/sys/quartzJob/resume',
    method: 'get',
    params: {
      jobClassName
    }
  })
}
export function executeQuartz(id) {
  return request({
    url: '/sys/quartzJob/execute',
    method: 'get',
    params: {
      id
    }
  })
}
export function deleteQuartz(id) {
  return request({
    url: '/sys/quartzJob/delete',
    method: 'delete',
    params: {
      id
    }
  })
}
